<?php defined('TSTP_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Test_Types
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: range_array.tstp.php 237 2009-05-23 05:15:55Z molotsoft@gmail.com $
* @link $HeadURL: http://test-types.googlecode.com/svn/tags/latest/types/array/range_array.tstp.php $
*/


function tstp_range_array($var, $mincnt = NULL, $maxcnt = NULL) {
	return is_array($var) && in_range($mincnt, count($var), $maxcnt);
}

function tstp_rarray($var, $mincnt = NULL, $maxcnt = NULL) { return tstp_range_array($var, $mincnt, $maxcnt); }
function tstp_rarr($var, $mincnt = NULL, $maxcnt = NULL) { return tstp_range_array($var, $mincnt, $maxcnt); }
function tstp_ra($var, $mincnt = NULL, $maxcnt = NULL) { return tstp_range_array($var, $mincnt, $maxcnt); }


?>